Skip to content

fix: remove malformed type attribute from html tag in PDF template#2806

Draft
yyq1043-cloud wants to merge 1 commit into
soxoj:mainfrom
yyq1043-cloud:fix/pdf-template-broken-html-tag
Draft

fix: remove malformed type attribute from html tag in PDF template#2806
yyq1043-cloud wants to merge 1 commit into
soxoj:mainfrom
yyq1043-cloud:fix/pdf-template-broken-html-tag

Conversation

@yyq1043-cloud

@yyq1043-cloud yyq1043-cloud commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Summary

Fix the malformed <html> tag on line 1 of simple_report_pdf.tpl.

Before: <html>type="text/css" (broken — missing > before stray attribute)
After: <html> (valid HTML5)

The type="text/css" attribute is valid for <style> elements, not <html>. Removing it produces valid HTML in generated PDF reports.

Changes

  • maigret/resources/simple_report_pdf.tpl: Remove broken type="text/css" attribute from opening <html> tag

This is a standalone fix addressing only the HTML validation issue. No other files changed.

@yyq1043-cloud

Copy link
Copy Markdown
Contributor Author

Hi! I'd like to request review for this PR: Fix broken HTML tag in simple_report_pdf.tpl
Requesting review from: @soxoj
Thank you! 🙂

@soxoj

soxoj commented Jun 29, 2026

Copy link
Copy Markdown
Owner

Thanks! The one-line <html>type="text/css"<html> fix is good, but this PR also bundles the archive.is/web.archive.org template links and the submit.py blocking-pattern rewrite from #2804 — please drop those here and keep only the HTML tag fix. Comments on the blocking-pattern changes are in #2804.

@soxoj soxoj marked this pull request as draft June 29, 2026 13:57
@soxoj soxoj changed the title Fix broken HTML tag in simple_report_pdf.tpl [WIP] Fix broken HTML tag in simple_report_pdf.tpl Jun 29, 2026
@yyq1043-cloud

Copy link
Copy Markdown
Contributor Author

Hi! I'd like to request review for this PR: [WIP] Fix broken HTML tag in simple_report_pdf.tpl
Requesting review from: @soxoj
Thank you! 🙂

@yyq1043-cloud yyq1043-cloud force-pushed the fix/pdf-template-broken-html-tag branch from 62d4e9f to f8e90c5 Compare July 1, 2026 02:36
@yyq1043-cloud yyq1043-cloud changed the title [WIP] Fix broken HTML tag in simple_report_pdf.tpl fix: remove malformed type attribute from html tag in PDF template Jul 1, 2026
The opening <html> tag contains a malformed type="text/css" attribute
which makes the HTML invalid (leading > missing). In HTML5 the <html>
tag does not require any attributes.

Fixes the malformed HTML that appears in generated PDF reports.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants